<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib  uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>自定义表单添加</title>
 <link href="css/table.css" rel="stylesheet" type="text/css" />
 <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
 <script type="text/javascript" src="js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="js/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="js/form.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
	editor = K.create('textarea[name="content"]', {
					allowFileManager : true
				});
	});
</script>
</head>
<body>
<table align="center" border="0" cellpadding="0" cellspacing="0" width="98%">
  <tbody>
  <tr>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
    <td style="background: url('image/wsoa_window_002.gif');"><table border="0" cellpadding="0" cellspacing="0">
      <tbody><tr>
        <td align="center" style="background: url('image/wsoa_window_002.gif');" width="10"><img src="image/center_19.gif"></td>
        <td align="center" style="background: url('image/wsoa_window_002.gif');"></td>
        <td> 系统管理 &gt; 自定义平台 &gt;自定义表单 &gt;添加
        </tr>
    </tbody>
    </table></td>
    <td style="background: url('image/wsoa_window_002.gif');" width="1"></td>
  </tr>
  <tr>
    <td style="background: url('image/wsoa_window_010.gif');"  width="1">&nbsp;</td>
    <td>
    <input type="hidden" id="array" >
    <form action="" method="post" name="saveForm" id="saveForm">
    <table width="100%" style="margin-top: 10px" class="table5 bgcolor5">
    	<tr><td  class="table5 bgcolor5" width="15%">表单名称</td>
    	<td class="table5"  >
    		<input size="60"  name="definition.name" id="formName" maxlength="30" type="text" value="${definition.name}"/>
    	</td></tr>
    	<tr><td  class="table5 bgcolor5" width="15%">关联内容</td>
    	<td class="table5"  >
    			<s:select list="formList"  id="formId"  listKey="id" listValue="formName" name="definition.formId" headerKey="" headerValue="请选择关联内容" value="definition.formId" theme="simple" cssStyle="width:200px"></s:select>
    	</td></tr>
    	<tr><td  class="table5 bgcolor5" width="15%">显示列数</td>
    	<td class="table5"  >
    		<s:select list="#{'1':'一列','2':'二列','3':'三列'}"  onchange="showStyleForm(this.value)" id="show" headerKey="" headerValue="请选择显示列数"   theme="simple" cssStyle="width:200px"></s:select>
    	</td></tr>
    	<tr id="formStyle">
    	<td class="table5" colspan="2">
    	<div>
    	<textarea  name="content" id="content"   style="width:730px;height:450px;visibility:hidden;"></textarea>
    	</div>
    	</td>
    	</tr>
    	<tr><td align="center" colspan="2"><input onclick="saveFormDefinition()" class="button_02" value="保存" type="button" >&nbsp;
    	<input class="button_02" type="button" value="退出" onclick="window.close()" > </td></tr>
    </table>
    </form>
    </td>
<td style="background: url('image/wsoa_window_006.gif');"  width="1">&nbsp;</td></tr>
  <tr>
    <td height="1" width="1"><img src="image/wsoa_window_009.gif" height="16" width="14"></td>
    <td style="background: url('image/wsoa_window_008.gif');" height="1"></td>
    <td height="1" width="1"><img src="image/wsoa_window_007.gif" height="16" width="12"></td>
  </tr>
</tbody>
</table>
</body>
</html>